package com.atguigu.gmall.item.client.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.client.ItemFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: atguigu
 * @create: 2022-12-29 09:42
 */
@Slf4j
@Component
public class ItemDegradeFeignClient implements ItemFeignClient {

    @Override
    public Result<Map<String, Object>> getBySkuId(Long skuId) {
        log.error("远程调用服务{}，方法：{}，调用失败，执行了服务降级方法！", "item-service", "getBySkuId");
        return null;
    }
}
